﻿using System;

namespace RESTFinder.Service
{
    public class MainController:Nancy.NancyModule
    {
        const String IndexPage = @"
            <html><body><head><meta charset='utf-8'></head>
            <h1>Yep. The server is running</h1>
            <a href='/document'>转到API</a>
            </body></html>
            ";
        public MainController()
        {
            Get["/"] = p =>
            {
                return IndexPage;
            };
        }
    }
}
